import request from '@/utils/request'

// 查询路线列表
export function listSurface(query) {
  return request({
    url: '/crm/transPath/list',
    method: 'get',
    params: query
  })
}

// 查询路线详细
export function getSurface(id) {
  return request({
    url: '/crm/transPath/' + id,
    method: 'get'
  })
}

// 新增路线
export function addSurface(data) {
  return request({
    url: '/crm/transPath',
    method: 'post',
    data: data
  })
}

// 修改路线
export function updateSurface(data) {
  return request({
    url: '/crm/transPath',
    method: 'put',
    data: data
  })
}

// 删除路线
export function delSurface(id) {
  return request({
    url: '/crm/transPath/' + id,
    method: 'delete'
  })
}
